package com.kasa.zto.common;

import com.kasa.zto.ZTODecoder;
import com.kasa.zto.ZTOEncoder;
import com.kasa.zto.ZTOException;
import com.kasa.zto.ZTOType;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author zhougang
 * @version 1.0
 */
public class LancomeData implements ZTOType
{
    private static final long serialVersionUID = 3112052705791196874L;

    public CommHead head;

    public ZTOType data;

    public LancomeData()
    {
    }

    public void encode(ZTOEncoder encoder) throws ZTOException
    {
        encoder.encodeZTOType(head);
        encoder.encodeZTOType(data);
    }

    public void decode(ZTODecoder decoder) throws ZTOException
    {
        head = decoder.decodeZTOType(CommHead.class);
    }
}
